package com.mode.decorator.pattern;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/27 16:50
 */
public abstract class CoffeeDecorator implements Coffee{
    protected final Coffee coffee;
    public CoffeeDecorator(Coffee coffee) {
        this.coffee = coffee;
    }

    @Override
    public String getIngredients() {
        return coffee.getIngredients();
    }
}
